extends "res://tscn/chara/anim.gd"


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
	
func upAnim():
	flip_h = cha.animFlip
	frames = load(cha.animFile) 
	
	
	var height = frames.get_frame("idle",0).get_height()
	var width = frames.get_frame("idle",0).get_width()
	offset = cha.animOffset
	
	scale = cha.animScale
	position.y = 64 - frames.get_frame("idle",0).get_height() * scale.y * 0.5
#	#底部对齐
#	position.y = -(height - 64)/2 + 30 
	
	

func rSetDire():	
	pass

# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass
